package com.ophiux.cs.infrastructure.mapper.chat;

import org.apache.ibatis.annotations.Param;

import com.ophiux.cs.domain.chat.model.entity.CSChatSession;
import com.ophiux.utils.exception.OphiuxDaoException;

/**
 * 对话映射
 * @author chenh
 *
 */
public interface CSChatSessionMapper {

	public void insert(CSChatSession model) throws OphiuxDaoException;
	
	public void update(CSChatSession model) throws OphiuxDaoException;
	
	/**
	 * 查询会话
	 * @param userID	那个用户
	 * @param who	和谁的？
	 * @return
	 */
	public CSChatSession getCSChatSession(@Param(value = "TARGET_ACC") String TARGET_ACC ,
			@Param(value = "WHO") String WHO) throws OphiuxDaoException;
	
	/**
	 * 查询会话
	 * @param ID
	 * @return
	 */
	public CSChatSession getCSChatSessionByID(String ID) throws OphiuxDaoException;
	
}
